﻿
using System.ComponentModel.DataAnnotations;

namespace ViewModel
{
    public class InputModel
    {
        [Required(ErrorMessage = "* 姓名必填")]
        [StringLength(15, MinimumLength = 1)]
        public string NickName { get; set; }
        public string? Platform { get; set; }
        public string? PlatformNickName { get; set; }
        [Url]
        public string? PersonalHomepage { get; set; }
        [StringLength(15, MinimumLength = 1)]
        public string? Name { get; set; }
        [DataType(DataType.Date)]
        public DateTime? Birthday { get; set; }
        public bool? Gender { get; set; }
        public string? Company { get; set; }
        public string? City { get; set; }
        public string? Skill { get; set; }
        [Range(1, 50)]
        public int WorkYears { get; set; }
        [StringLength(11)]
        [RegularExpression(@"^1(\d{10})$", ErrorMessage = "* 手机格式不正确")]
        public string? Phone { get; set; }
        [StringLength(20, MinimumLength = 6, ErrorMessage = "* 填写微信号")]
        [RegularExpression(@"[a-zA-Z0-9_-]{6,20}$")]
        public string? Wechat { get; set; }
        [StringLength(11, MinimumLength = 5)]
        public string? QQ { get; set; }
        [EmailAddress]
        public string? Email { get; set; }
        public string? Other { get; set; }
        public List<object>? Platforms { get; set; }
        public List<object>? Skills { get; set; }
    }
}